<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML>
<html>
<head>
<title>My JSP 'testitem.jsp' starting page</title>
<link href="assets/ico/biologo.ico" rel="shortcut icon">
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
<script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/bootstrap-popover.js"></script>
<style type="text/css">
body {
	background-image: url("");
	font-family: HAKUYOGuiFanZi3500;
}

#diseases {
	margin-top: 12px;
	margin-left: 20%;
	margin-right: 20%;
}

form {
	font-size: 16px;
}

#titlediv {
	margin-bottom: 0px;
}

.content {
	position: absolute;
	top: 0px;
	width: 700px;
	margin-top: 10px;
	margin-left: 360px;
}

.add-on {
	font-size: 14px;
}

.form-actions {
	margin-right: 52%;
}
</style>
</head>
<body>
	<%@ include file="main.jsp"%>
	<div class="content">
	<hr />
		<img alt="" src="img/baolude-logo.gif">
		<hr />
		<div style="font-size: 18px;font-family: 方正静蕾简体;">
		<i class="icon-home"></i>
			<a id="homepageLink" href="homepageLink.action">查询主页</a>》》》
			<i class="icon-list"></i>
			<a
				id="sampleInfoLink" href="sampleInfoLink.action">订单列表</a>》》》<i class="icon-book"></i>
				
					<a href="gotoSampleInfoOrderPage.action?sampleInfoSn=${sampleInfoSn}">订单信息</a>》》》
					<span>订单中${testItem.code}的信息</span>
			<hr />
		</div>
		
		
		<h1 style="font-family: 方正静蕾简体;">测试项目的一些信息</h1>
		<span> <i class="icon-tags"></i>${testItem.code}<br />
		</span> 该测试项目的id值：${testItem.sn }<br /> 该测试项目的测试：${testItem.test }<br />
		该测试项目的价格：${testItem.price }<br /> 该测试项目的描述：${testItem.description}<br />
		该测试项目的测试包含的疾病：
		<div id="showDisease"></div>
		<div class="testItemOfDiseases" style="display:none">
			<c:forEach var="disease" items="${testItem.diseases }">
				${disease.name},
			</c:forEach>
		</div>
		<input id="testBtn" type="button" value="测试"/>
		<br /> 该测试项目的测试包含订单编号：
		<c:forEach var="sampleInfo" items="${testItem.sampleInfos }">
			${sampleInfo.code }
		</c:forEach>
		<br /> 该测试项目的测试testObject：
		<c:forEach var="testObject" items="${testItem.testObjects }">
			${testObject.code }
		</c:forEach>
		<br />

	</div>
</body>

<script type="text/javascript">
	$(function() {
		$("#leftDiv").css("display", "none");
		$("#container").css("display", "none");
	});
	
	$(function(){
			var diseaseStr=$(".testItemOfDiseases").text().replace(/\n/g, "").trim().replace(/\s/g, "");
			var lastIndex = diseaseStr.lastIndexOf(',');
			if (lastIndex > -1) {
				diseaseStr = diseaseStr.substring(0, lastIndex) + diseaseStr.substring(lastIndex + 1, diseaseStr.length);
			}
			//alert(diseaseStr);
			document.getElementById("#showDisease").innerHTML= " sdsdsdsdsd ";
			//$("#showDisease").innerHTML(diseaseStr);
	});
</script>

</html>
